package k3_IO.p2_fileStream.demo01;

import java.io.BufferedReader;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;

public class FilesTest {

    public static void main(String[] args) throws IOException {

        Path path = Path.of("E://print.txt");

//        byte[] allBytes = Files.readAllBytes(Path.of("E://print.txt"));
//        System.out.println(new String(allBytes));

//        List<String> lines = Files.readAllLines(path);
//        for (String line : lines) {
//            System.out.println(line+"=======");
//        }

//        System.out.println(Files.readString(path));

    }

}
